# -*- coding: utf-8 -*-
'''
输出A以内能被B整除的数
'''
arr = input().split()
a = int(arr[0])
b = int(arr[1])
res = list()

for i in range(1,a):
  if i%b == 0:
    res.append(str(i))
if len(res):
  print(" ".join(res))
else:
  print('None')
